import instance from "@/axios";

// 学生分页数据
export const studentPage = (searchForm)=>instance.post("/student/page",searchForm)

// 根据id获取学生信息
export const getStudentById = (id)=>instance.get("/student/getById/"+id)

// 添加 修改
export const addOrUpdate = (student)=>instance.post("/student/addOrUpdate",student)

// 删除学生信息
export const deleteStudentById = (id)=>instance.delete("/student/delete/"+id)

// 批量导入
export const importStudent = (formData)=>instance.post("/student/import/",formData)

// 批量导出   responseType:'arraybuffer'   设置以流的形式响应数据
export const exportStudent = (exportParams)=>instance.post("/student/export/",exportParams,{responseType:'arraybuffer'})